package gang.org.springframework.boot.autoconfigure.web.servlet;

import gang.org.springframework.framework.web.servlet.GangDispatcherServlet;

/**
 * @Author：gang.chen
 * @Date：2023/10/13 9:27
 */
public class GangDispatcherServletRegistrationBean extends GangServletRegistrationBean<GangDispatcherServlet> implements GangDispatcherServletPath{

    public final String path;

    public GangDispatcherServletRegistrationBean(GangDispatcherServlet servlet, String path){
        super(servlet);

        this.path = path;

        super.addUrlMapping(getServletUrlMapping());
    }

    @Override
    public String getPath() {
        return this.path;
    }
}
